# coding:utf-8
# 作者：理想国真恵玩
import numpy as np

arr = np.arange(100).reshape([10, 10])
print(arr)
print('-' * 33)

# min(数组，行1还是列0)：求最小值
print(np.min(arr, 0))
print(np.min(arr, 1))
print('-' * 33)

# max(数组，行1还是列0)：求最大值
print(np.max(arr, 0))
print(np.max(arr, 1))
print('-' * 33)

# median(数组，行1还是列0)：求中位数
print(np.median(arr, 0))
print(np.median(arr, 1))
print('-' * 33)

# mean(数组，行1还是列0)：求均值
print(np.mean(arr, 0))
print(np.mean(arr, 1))
print('-' * 33)

# std(数组，行1还是列0)：求标准差
print(np.std(arr, 0))
print(np.std(arr, 1))
print('-' * 33)

# var(数组，行1还是列0)：求方差
print(np.var(arr, 0))
print(np.var(arr, 1))
print('-' * 33)
